package day7;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

/**
 * @author oldliu
 * @since 1.0
 */
public class BuffWriterTest {
    public static void main(String[] args) {
        try {
            BufferedWriter bw=new BufferedWriter(new FileWriter("chat.txt"));
            for(int i=1;i<100;i++){
                bw.write("好好学习，day day up");
                bw.newLine();//换行
            }
            bw.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
